package com.ljf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljf.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    Set<Role> queryByEid(Long eid);

    List<Long> getAllRoleIds();

    List<Long> getRoleIds(Long eid);

    void deleteAllRole(Long eid);

    void saveNewRole(List<Map<String, Object>> list);

    List<Long> getMenuIdByRid(Long rid);

    void clearRecordsByRid(Long rid);

    void saveRolePermissons(List<Map<String, Object>> list);
}
